home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8742 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: munnari.OZ.AU!metro!metro!OzEmail!usenet
  2. From: curreya@ozemail.com.au (Adam Currey)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: String Encryption
  5. Date: Wed, 06 Mar 1996 02:12:38 GMT
  6. Organization: OzEmail Pty Ltd - Australia
  7. Message-ID: <4hioqk$8h1@oznet03.ozemail.com.au>
  8. References: <1996Feb21.101532.15110@es.dupont.com> <1996Feb21.174407.20730@newshost.micro.ti.com> <4ghq1u$sed@hpbblb.bbn.hp.com>
  9. NNTP-Posting-Host: slgos1p17.ozemail.com.au
  10. X-Newsreader: Forte Agent .99b.113
  11.  
  12. On 22 Feb 1996 13:11:26 GMT, Matthias Dittrich <matti> wrote:
  13.  
  14.   >brett@racerx.micro.ti.com (Brett L. Huber) wrote:
  15.   >>Malcolm Smart (MALCOLM.SMART@CONOCO.DUPONT.COM) wrote:
  16.   >>> Has anybody out there got any small routines that I can apply to strings 
  17.   >>> which will effectively encrypt them (and decrypt!).  It's not a matter of 
  18.   >>> state security so it doesn't have to be that secure, just make it 
  19.   >>> unreadable.  
  20.   >>
  21.   >>It really depends on what level of "unreadability" you want.  Who are
  22.   >>you protecting the data from?  If you aren't protecting a secret, try
  23.   >>"rot13," which translates A->N, B->O, ... Z->M.
  24.   >>
  25.   >>For an introduction to cryptographic techniques, try the sci.crypt FAQ:
  26.   >>http://www.cis.ohio-state.edu/hypertext/faq/bngusenet/sci/crypt/top.html
  27.   >>
  28.   >> ...
  29.   >You also can use the crypt() function (see man 3 crypt).
  30.   >
  31.   >Good luck,
  32.   >Matthias
  33.   >
  34.  
  35.  
  36. It may be obvious to some, but why not just add an arbitrarily-chosen number to
  37. the ASCII-value of each byte in the file? A simple encode/decode program in C
  38. should take more than a couple of minutes.
  39.  
  40.  
  41.  
  42. Adam
  43.  
  44. "...the chances of finding out what's really going on in the universe are
  45. so absurdly remote, that the only sensible thing to do is say, hang the
  46.  sense of it and just keep yourself occupied." - Slartibartfast
  47.  
  48.